#include<stdio.h>
int main()
{
	int i = 0 ,count=0;;
	for(i=1;i<=100;i++)
	{
		if(i % 10 == 9) count++;
	    if(i / 10 == 9) count++;
	}
	printf("%d\t",count);
	return 0;
	
} 
